import {makeAutoObservable} from 'mobx'

class CounterStore {
    count = 0
    list=[1,2,3,4,5,6]

    constructor() {
        makeAutoObservable(this)
    }
   get filterList(){
       return this.list.filter((item)=>item>2)
    }
  addList=()=>{
          this.list.push(78,9)
  }
    addCount = () => {
        this.count+=1;
    }
}

export {CounterStore}
